package com.guoguo.ztree.entity;

import lombok.Data;

import java.util.List;

@Data
public class Paging<T> {
    public Paging() {
    }

    public Paging(Long pageNum, Integer pageSize, Long totalRowNum, Long totalPageNum, List<T> dataList) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
        this.totalRowNum = totalRowNum;
        this.totalPageNum = totalPageNum;
        this.dataList = dataList;
    }

    /**
     * 页数
     */
    private Long pageNum;
    /**
     * 每页条数
     */
    private Integer pageSize;
    /**
     * 总数据数
     */
    private Long totalRowNum;
    /**
     * 总页数
     */
    private Long totalPageNum;
    /**
     * 数据集合
     */
    private List<T> dataList;
}
